const data = []

for (let i = 0; i < 50; i++) {
  data.push({
    id: i + 1,
    name: '测试人员' + i,
    gender: Math.random() > 0.5 ? '1' : '0'
  })
}

export default {
  description: '用户模拟数据',
  data,
  columns: [
    { field: 'name', title: '姓名', showFormType: 'input', width: 200 },
    { field: 'gender', title: '性别', showFormType: 'checkbox', width: 80, cellType: 'dic', dictionaryKey: 'GENDER' }
  ],
  conditions: [
    { field: 'name', searchPlaceholder: '请输入姓名', fieldValueRel: 'like' },
    { field: 'gender', hideLabel: '1', fieldValueRel: 'eq' }
  ],
  formItems: [
    // 必须设置主键列，否则修改、删除等会失效
    { field: 'id', isKey: '1', visible: false },
    { field: 'name', label: '姓名', type: 'input' },
    { field: 'gender', label: '性别', type: 'select', dictionaryKey: 'GENDER' }
  ]
}
